package com.java1412.controller;

import com.java1412.service.SchedualServiceHi;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author java1412
 * @since 2023-07-20 14:07:13
 */
@RestController
public class HiController {
    @Resource
    private SchedualServiceHi schedualServiceHi;

    @RequestMapping(value = "/hi")
    public String hi(
            @RequestParam(value = "name") String name
    ) {
        System.out.println("feign");
        return schedualServiceHi.sayHiFromClientOne(name);
    }
}
